<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" >
<head>
	<title>Loading GreenBridge</title>
	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	<link rel="icon" type="image/vnd.microsoft.icon" href="images/bridge.ico">
    <link rel="stylesheet" type="text/css" href="styles/color.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="styles/wikid2.css" media="screen" />
	<link type="text/css" href="styles/jquery-ui-1.8.1.custom.css" rel="stylesheet" />	
	<link rel="stylesheet" type="text/css" media="screen, projection" href="styles/horizontal.css" />
    <style media="screen" type="text/css">

    /* --> */
    </style>
    <!--[if lt IE 7]>
    <style media="screen" type="text/css">
    .col1 {
	    width:100%;
	}
    </style>
    <![endif]-->
        <script type="text/javascript" src="scripts/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="scripts/jquery-ui-1.8.1.custom.min.js"></script>
	<script type="text/javascript" src="scripts/wikid-0.2.js"></script>
	<script type="text/javascript" src="scripts/jquery.parsequery.js"></script>
	<script type="text/javascript" src="scripts/showdown.js"></script>
	<script type="text/javascript" src="scripts/jsonpath-0.8.0.js"></script>
	 <script type="text/javascript" src="scripts/jquery.corner.js"></script>
	 <script src="/_utils/script/couch.js?0.11.0"></script>
	 <script src="/_utils/script/futon.format.js?0.11.0"></script>
	 <script src="/_utils/script/jquery.couch.js?0.11.0"></script>
	 <script src="/_utils/script/jquery.suggest.js?0.11.0"></script> 
	 <script type="text/javascript" src="scripts/jquery.timeago.js"></script>
	 <script type="text/javascript" src="scripts/menu.js"></script>

	 <script type="text/javascript">
	    $(function() {



			var db_name = wikid.parseDBname(window.location);
			var wikid_id = wikid.parseTopicName(window.location);
			var db = new CouchDB(db_name, {"X-Couch-Full-Commit":"true"});
			var doc = db.open(wikid_id);
			var result = wikid.toWikid(doc, db);
			$('.readableId').text(result.topic);
			document.title = result.title;
			
			$('.button').button();
			
			
			// search
			$('#search input').suggest(function(text, callback) {
				$.getJSON("/" + db_name + "/_all_docs?startkey=%22"+ text +"%22&endkey=%22"+ text +"zzz%22&limit=10&callback=?", function(docs){
					  var matches = [];
					  for (var i = 0; i < docs.rows.length; i++) {
						if (docs.rows[i].id.indexOf(text) == 0) {
						  matches[i] = docs.rows[i].id;
						}
					  }
					  callback(matches);
				});
			}).keypress(function(e) {
				if (e.keyCode == 13) {
					window.location = 'wiki.html?' + $(this).val();
				}
			});
			
			$('#Info-tab a').attr('href', 'wiki.html?' + wikid_id);	
		});
	 </script>
</head>
<body>
<div class="colmask holygrail">
    <div class="colmid">
        <div class="colleft">
            <div class="col1wrap">
                <div class="col1">
                    <div class="taboverhead">
                    </div>
                    <div class="tabheader">
                        <div class="maintabs">
                            <ul id="tabnav">
                                <li id="Info-tab"><a href="#" class="maintab">Topic</a></li>
                                <li id="Audiostream-tab"><a href="#" class="maintab active">Audiostream</a></li>
                            </ul>
                        </div>
						<div class="search" id="search">
							<input type="text" name="q" placeholder="Search"/>
						</div>
                    </div>
					<!-- Column 1 start -->
                    <div id="maincontent">
                        <div id="title" class="readableId padcontent"></div>

                        <div id="Info" class="padcontent content-container">
							<button id="play" title="play" class="button  ui-corner-all"><span class="ui-icon ui-icon-play"></span></button>
							<button id="next" title="previous" class="button  ui-corner-all"><span class="ui-icon ui-icon-seek-prev"></span></button>
							<button id="play" title="next" class="button  ui-corner-all"><span class="ui-icon ui-icon-seek-next"></span></button>
                        </div>
                    </div>
					<!-- Column 1 end -->

                </div>
            </div>
            <div class="col2">
				<!-- Column 2 start -->
                <div class="span-3 left">
                    <img id="leftLogo" src="images/gb-logo-trim.png" /><br/>
                    <a href="index.html">Dashboard</a><br/>
                    <a href="topic.html?Conversation">Conversations</a><br/>
                    <a href="topic.html?Project">Projects</a><br/>
                    <a href="topic.html?Person">People</a><br/>
		        </div>
                <!-- Column 2 end -->
            </div>
            <div class="col3">
				<!-- Column 3 start -->
					<div id="sda">
                        <div id="sda_header">
                            Sponsors
                        </div>
                        <div id="create">
                            <a href="http://google.com">Create an Ad.</a>
                        </div>
                        <div class="sponsor">
                            <div class="sp_title"><a href="http://google.com">Healthcare Job Training</a></div>
                            <div class="sp_image"><img src="images/sda/2.jpg" /></div>
                            <div class="sp_body">Quickly become a trained Medical Office Assistant. Quality career training, Fast! Take your first step. Visit us now.</div>
                        </div>
					</div>
				
				<!-- Column 3 end -->
            </div>
        </div>
    </div>
</div>
<div id="footer">
    <p><a href="http://code.google.com/p/mind-listening">GreenBridge Wiki Software</a> .
</div>
<div id="dialog-skype" title="Tag Skype Conversation?">
	<p>It appears you are dialing out using the skype plugin. Would you like to tag this conversation?</p>
</div>

</body>
</html>
